import upload from '@/utils/upload'
import request from '@/utils/request'

// 获取调拨出库详情
export function getInventoryCountList(params) {
	return request({
		url: '/app/inventory-count/get',
		method: 'GET',
		params
	})
}

// 完成盘点
export function updateInventoryCount(params) {
	return request({
		url: '/app/inventory-count/update',
		method: 'PUT',
		data: params
	})
}
// 获取仓库树
export function getWarehouseListExtend(params) {
	return request({
		url: '/system/warehouse/getWarehouseListExtend',
		method: 'GET',
		params
	})
}
// 获取库位
export function getLocationListExtend(params) {
	return request({
		url: '/system/location/listExtend',
		method: 'GET',
		params
	})
}
// 获取扫码之后的数据
export function getScanData(params) {
	return request({
		url: '/system/goods/get',
		method: 'GET',
		params
	})
}
// 入库暂存
export function tempWarehousing(params) {
	return request({
		url: '/system/temp/add',
		method: 'POST',
		data: params
	})
}
// 入库暂存查询 /system/temp/get?documentNumber=&id=
export function getTempWarehousing(params) {
	return request({
		url: '/system/temp/get',
		method: 'GET',
		params
	})
}
